package com.analysis.service.impl;

import java.util.List;

import com.analysis.model.KLine;
import com.analysis.service.FuzzyService;

public class FuzzyServiceImpl implements FuzzyService{
	KLineServiceImpl klineService = new KLineServiceImpl();
	public void run(int num) {
		List<KLine> klines = klineService.getKline("sh600000");
		List<KLine> subKlines = klines.subList(0, 50);
		for(int i=num-1;i<subKlines.size();i+=num) {
			System.out.println(i);
		}
		
	}
	
	public void curtail(List<KLine> kline) {
//		for() {
//			
//		}
	}
	public static void main(String[] args) {
		new FuzzyServiceImpl().run(10);
	}
}
